www.mxdraw.com
|
矩阵变换一个实体
[helpstring("method TransformBy")] HRESULT TransformBy([in] IMxDrawMatrix3d* transformationMatrix);
参数 |
说明 |
[in] IMxDrawMatrix3d* transformationMatrix |
变换矩阵 |
例如: 比旋转实体 90.
MxDrawMatrix3d mat = new MxDrawMatrix3d(); MxDrawVector3d vec = new MxDrawVector3d(); vec.MakeZAxis(); // 旋转基点. MxDrawPoint pt = new MxDrawPoint(); pt.x = 100; pt.y = 100; mat.Rotation(90 * 3.14159265 / 180, vec, pt); ent.TransformBy(mat);